﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WFT.Activities.Xml
{
    /// <summary>
    /// Remove a xml node
    /// </summary>
    [Description("Remove a xml node")]
    public sealed class RemoveXmlNodeActivity : BaseXmlTransformationActivity
    {
        protected override string Transform(System.Activities.NativeActivityContext context, string xmlSource)
        {
            return xmlSource.RemoveXmlObject(XPath.Get(context), StringExtensions.XmlRemoveOperation.Self);
        }
    }
}
